.max-line-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    overflow: hidden;
}

.wraper {
    box-sizing: border-box;
}

.wraper.pc {
    box-sizing: border-box;

    .main {
        padding: 0 16px 80px;
    }

    .categorys {
        display: flex;
        flex-flow: row nowrap;
        gap: 40px;
        padding-top: 30px;
        overflow: auto;
        justify-content: center;
    }

    .category {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 40px;
        padding: 0 24px;
        border-radius: 4px;
        border: 1px solid var(--render-color-border);
        font-size: 20px;
        color: var(--render-text-color-main);
        cursor: pointer;

        &.category-current {
            font-weight: 500;
            color: var(--design-theme-color);
            background-color: var(--design-theme-color-lightest);
            border-color: var(--design-theme-color);
        }
    }

    .courses {
        --gap: 20px;

        padding: 50px 0;
        flex-flow: row wrap;
        gap: var(--gap);
        display: none;
        max-width: 1180px;
        margin: 0 auto;

        &.courses-current {
            display: flex;
        }

        &.courses-maxcol2 {
            --course-width: calc((100% - var(--gap)) / 2);
        }

        &.courses-maxcol3 {
            --course-width: calc((100% - var(--gap) * 2) / 3);
        }
    }

    .course {
        width: var(--course-width);
        text-decoration: none;
        cursor: pointer;
        border-radius: 4px;
        background: #FFF;
        box-shadow: 0 0 24px 0 #00000014;
        overflow: hidden;
        transform: translate3d(0, 0, 0);
        transition: .3s;

        &:hover {
            transform: translate3d(0, -10px, 0);
            box-shadow: 0 0 32px 0 #0000001f;

            .cover {
                transform: scale(1.1);
            }
        }

        .cover-wrap {
            width: 100%;
            aspect-ratio: 580 / 326;
            overflow: hidden;
        }

        .cover {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            // aspect-ratio: 580 / 326;
            transform: scale(1);
            will-change: transform;
            transition: .3s;
        }

        .info {
            padding: 14px 20px 18px;
        }

        .title {
            color: var(--render-text-color-main);
            font-size: 20px;
            font-weight: 600;
            line-height: 28px;

            @apply truncate;      
        }

        .desc {
            margin-top: 8px;
            color: var(--render-text-color-third);
            font-size: 14px;
            font-weight: 400;
            line-height: 20px;

            @apply truncate;
        }

        .extra {
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            justify-content: space-between;
            margin-top: 16px;
        }

        .price {
            color: #f84316;
            font-size: 18px;
            font-weight: 700;
        }

        .views {
            color: var(--render-text-color-third);
            font-size: 14px;
        }
    }

    .more-btn {
        text-decoration: none;
        display: block;
        margin: 10px auto 0;
        width: 180px;
        height: 48px;
        border-radius: 4px;
        cursor: pointer;
        color: var(--design-theme-color);
        font-size: 16px;
        line-height: 48px;
        text-align: center;
        border: 1px solid var(--design-theme-color);

        &:hover {
            background: var(--design-theme-color);
            color: #fff;
        }
    }
}

.wraper.mobile {
    box-sizing: border-box;

    .main {
        padding: 0 16px 40px;
    }

    .categorys {
        display: flex;
        flex-flow: row nowrap;
        gap: 16px;
        padding-top: 24px;
        overflow: auto;
    }

    .category {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 24px;
        padding: 0 16px;
        border-radius: 4px;
        border: 1px solid var(--render-color-border);
        font-size: 12px;
        color: var(--render-text-color-main);
        cursor: pointer;

        &.category-current {
            font-weight: 500;
            color: var(--design-theme-color);
            background-color: var(--design-theme-color-lightest);
            border-color: var(--design-theme-color);
        }
    }

    .courses {
        --gap: 9px;

        padding: 20px 0;
        flex-flow: row wrap;
        gap: var(--gap);
        display: none;

        &.courses-current {
            display: flex;
        }
    }

    .course {
        width: calc((100% - var(--gap)) / 2);
        text-decoration: none;
        cursor: pointer;
        border-radius: 4px;
        background: #FFF;
        box-shadow: 0 0 12px 0 #00000014;
        overflow: hidden;

        .cover-wrap {
            width: 100%;
            aspect-ratio: 167 / 94;
            overflow: hidden;
        }

        .cover {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            // aspect-ratio: 167 / 94;
        }

        .info {
            padding: 10px 12px 14px;
        }

        .title {
            color: var(--render-text-color-main);
            font-size: 14px;
            font-weight: 600;
            line-height: 18px;
            .max-line-2;       
        }

        .desc {
            margin-top: 4px;
            color: var(--render-text-color-third);
            font-size: 12px;
            font-weight: 400;
            line-height: 16px;
            .max-line-2;
        }

        .extra {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            margin-top: 12px;
        }

        .price {
            color: #f84316;
            font-size: 14px;
            font-weight: 500;
        }

        .views {
            color: var(--render-text-color-third);
            font-size: 12px;
        }
    }

    .more-btn {
        text-decoration: none;
        display: block;
        margin: 12px auto 0;
        width: 128px;
        height: 32px;
        border-radius: 4px;
        background: var(--design-theme-color);
        cursor: pointer;
        color: #fff;
        font-size: 12px;
        line-height: 32px;
        text-align: center;
    }
}
